<?php
class model_newagk_project extends gdl_components_basemodel
{

    public function primarykey() {
        return 'id';
    }

    public function tableName() {
        return 'agk_project';
    }
	public function getList($admin_reg,$projectid=0){
        $where = 1;
        $condition = '';
        if ($projectid!=0)$condition = " AND id=".$projectid;
		$arr=$this->select('status=1 and isdelete=0  '.$condition,'id,name,pid')->items;
		
        return $arr;
    }
}
